package com.back.network.netty.constant;

import java.util.List;

import io.netty.channel.Channel;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpContent;
import io.netty.util.AttributeKey;

public interface Constants {

	public static final AttributeKey<Channel> NEXT_CHANNEL = AttributeKey.newInstance("nxt_channel");

	public static final AttributeKey<String> USER_ID = AttributeKey.newInstance("user_id");

	public static final AttributeKey<String> TOKEN = AttributeKey.newInstance("token");
	/** 是否发起连接请求 **/
	public static final AttributeKey<Boolean> IS_CONNECT = AttributeKey.newInstance("connect");

	public static final AttributeKey<String> CLIENT_KEY = AttributeKey.newInstance("client_key");

	public static final AttributeKey<FullHttpRequest> USER_REQUEST_DATA = AttributeKey.newInstance("user_request_data");

	public static final AttributeKey<List<HttpContent>> USER_CONTENT_DATA = AttributeKey
			.newInstance("user_content_data");

	public static final String CLIENT_NOT_CONNECT = "客户端未连接！！！";

}
